package com.itheima.test;

import java.util.Scanner;

public class Test11 {
    public static void main(String[] args) {
        //1.键盘录入小明的考试成绩
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数表示小明的成绩：");
        int score = sc.nextInt();

        //对异常数据进行判断校验
        //0-100合理数据
        if(score >= 0 && score <= 100){
            if(score >= 95 && score <= 100){
                System.out.println("送自行车一辆");
            }else if(score >= 90 && score <= 94){
                System.out.println("游乐场玩一天");
            }else if(score >= 80 && score <= 89){
                System.out.println("送变形金刚一个");
            }else {
                System.out.println("揍一顿");
            }
        }else {
            System.out.println("当前录入的成绩不合法！");
        }
    }
}
